Skip to content

Commit f347c2e

Browse files
authored
Update toFloat.cpp
remove a main function
1 parent a03ea3d commit f347c2e

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

Source/OpenEXR/Half/toFloat.cpp

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -131,34 +131,34 @@ halfToFloat (unsigned short y)
131131
// Main - prints the half-to-float lookup table
132132
//---------------------------------------------
133133

134-
int
135-
main ()
136-
{
137-
cout.precision (9);
138-
cout.setf (ios_base::hex, ios_base::basefield);
134+
// int
135+
// main ()
136+
// {
137+
// cout.precision (9);
138+
// cout.setf (ios_base::hex, ios_base::basefield);
139139

140-
cout << "//\n"
141-
"// This is an automatically generated file.\n"
142-
"// Do not edit.\n"
143-
"//\n\n";
140+
// cout << "//\n"
141+
// "// This is an automatically generated file.\n"
142+
// "// Do not edit.\n"
143+
// "//\n\n";
144144

145-
cout << "{\n ";
145+
// cout << "{\n ";
146146

147-
const int iMax = (1 << 16);
147+
// const int iMax = (1 << 16);
148148

149-
for (int i = 0; i < iMax; i++)
150-
{
151-
cout << "{0x" << setfill ('0') << setw (8) << halfToFloat (i) << "}, ";
149+
// for (int i = 0; i < iMax; i++)
150+
// {
151+
// cout << "{0x" << setfill ('0') << setw (8) << halfToFloat (i) << "}, ";
152152

153-
if (i % 4 == 3)
154-
{
155-
cout << "\n";
153+
// if (i % 4 == 3)
154+
// {
155+
// cout << "\n";
156156

157-
if (i < iMax - 1)
158-
cout << " ";
159-
}
160-
}
157+
// if (i < iMax - 1)
158+
// cout << " ";
159+
// }
160+
// }
161161

162-
cout << "};\n";
163-
return 0;
164-
}
162+
// cout << "};\n";
163+
// return 0;
164+
// }

0 commit comments

Comments
 (0)