A byte is *8* bits

This commit is contained in:
Steven Robertson 2010-09-12 15:48:31 -04:00
parent 7ef0d334ca
commit a6141f492d

View File

@ -717,7 +717,7 @@ class _PTXStdLib(PTXFragment):
# representation, 0fXXXXXXXX (where XX is hex byte) # representation, 0fXXXXXXXX (where XX is hex byte)
val = '0f%x%x%x%x' % reversed(map(ord, val = '0f%x%x%x%x' % reversed(map(ord,
struct.pack('f', val))) struct.pack('f', val)))
op._call(['st', 'b%d' % (width*4)], addr(spt_base), val) op._call(['st', 'b%d' % (width*8)], addr(spt_base), val)
@ptx_func @ptx_func
def set_is_first_thread(self, p_dst): def set_is_first_thread(self, p_dst):