<commit_before>/*
 * Copyright 2011-2014 <NAME>. All rights reserved.
 * License: http://www.opensource.org/licenses/BSD-2-Clause
 */

#ifndef BGFX_COMPUTE_H_HEADER_GUARD
#define BGFX_COMPUTE_H_HEADER_GUARD

#include "bgfx_shader.sh"

#ifndef __cplusplus

#if BGFX_SHADER_LANGUAGE_HLSL

float uintBitsToFloat(uint _x)  { return asfloat(_x); }
uint  floatBitsToUint(float _x) { return asuint(_x);  }

#define SHARED groupshared

#define IMAGE2D_RO(_name, _reg) Texture2D           _name : register(t[_reg])<commit_msg>Implemented missing casts.<commit_after>/*
 * Copyright 2011-2014 <NAME>. All rights reserved.
 * License: http://www.opensource.org/licenses/BSD-2-Clause
 */

#ifndef BGFX_COMPUTE_H_HEADER_GUARD
#define BGFX_COMPUTE_H_HEADER_GUARD

#include "bgfx_shader.sh"

#ifndef __cplusplus

#if BGFX_SHADER_LANGUAGE_HLSL

float uintBitsToFloat(uint  _x) { return asfloat(_x); }
vec2  uintBitsToFloat(uint2 _x) { return asfloat(_x); }
vec3  uintBitsToFloat(uint3 _x) { return asfloat(_x); }
vec4  uintBitsToFloat(uint4 _x) { return asfloat(_x); }
uint  floatBitsToUint(float _x) { return asuint(_x);  }
uvec2 floatBitsToUint(vec2  _x) { return asuint(_x);  }
uvec3 floatBitsToUint(vec3  _x) { return asuint(_x);  }
uvec4 floatBitsToUint(vec4  _x) { return asuint(_x);  }

#define SHARED groupshared

#define IMAGE2D_RO(_name, _reg) Texture2D           _name : register(t[_reg])
{'fraction_non_alphanumeric': 0.11207519884309472, 'fraction_numerical': 0.024584237165582067, 'mean_word_length': 5.319634703196347, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5068862', 'n_tokens_mistral': 551, 'n_tokens_neox': 543, 'n_words': 107}