diff options
Diffstat (limited to 'src/symcoord.c')
| -rw-r--r-- | src/symcoord.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/symcoord.c b/src/symcoord.c index 8b0eeb4..cb178b7 100644 --- a/src/symcoord.c +++ b/src/symcoord.c | |||
| @@ -166,8 +166,8 @@ antindex_nxopt31(uint64_t ind) | |||
| 166 | Cube c; | 166 | Cube c; |
| 167 | 167 | ||
| 168 | c = antindex_eofbepos_sym16(ind/(BINOM8ON4*POW3TO7)); | 168 | c = antindex_eofbepos_sym16(ind/(BINOM8ON4*POW3TO7)); |
| 169 | c.cp = coord_cpud_separate.cube((ind/POW3TO7)%BINOM8ON4).cp; | 169 | c.cp = coord_cpud_separate.cube(ind % BINOM8ON4).cp; |
| 170 | c.coud = ind % POW3TO7; | 170 | c.coud = (ind / BINOM8ON4) % POW3TO7; |
| 171 | 171 | ||
| 172 | return c; | 172 | return c; |
| 173 | } | 173 | } |
| @@ -231,9 +231,9 @@ index_nxopt31(Cube cube) | |||
| 231 | 231 | ||
| 232 | t = sd_eofbepos_16.transtorep[coord_eofbepos.index(cube)]; | 232 | t = sd_eofbepos_16.transtorep[coord_eofbepos.index(cube)]; |
| 233 | c = apply_trans(t, cube); | 233 | c = apply_trans(t, cube); |
| 234 | a = (index_eofbepos_sym16(c)*BINOM8ON4) + coord_cpud_separate.index(c); | 234 | a = (index_eofbepos_sym16(c)*POW3TO7) + c.coud; |
| 235 | 235 | ||
| 236 | return a * POW3TO7 + c.coud; | 236 | return a * BINOM8ON4 + coord_cpud_separate.index(c); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | static int | 239 | static int |
