core/linux/os.c
/* converts a local_state_t offset to a segment offset */
converts a local_state_t offset to a segment offset
converts a local_state_t offset to a segment offset
ushort
os_tls_offset(ushort tls_offs)
{
    IF_NOT_HAVE_TLS(ASSERT_NOT_REACHED());
    ASSERT(TLS_LOCAL_STATE_OFFSET == 0);
    return (TLS_LOCAL_STATE_OFFSET + tls_offs);
}
ushort os_tls_offset ( ushort tls_offs ) { IF_NOT_HAVE_TLS ( ASSERT_NOT_REACHED ( ) ) ; ASSERT ( TLS_LOCAL_STATE_OFFSET == 0 ) ; return ( TLS_LOCAL_STATE_OFFSET + tls_offs ) ; }
converts a local_state_t offset to a segment offset
converts a local_state_t offset to a segment offset
/* no ushort truncation issues b/c TLS_LOCAL_STATE_OFFSET is 0 */