From 0ab9046300788ce87e48be5911b8f80a7828207c Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Wed, 28 Apr 2010 15:48:47 -0700 Subject: [PATCH] rename half-floats vocab to math.floats.half --- basis/images/normalization/normalization.factor | 2 +- basis/{half-floats => math/floats/half}/authors.txt | 0 .../floats/half/half-tests.factor} | 4 ++-- .../half-floats.factor => math/floats/half/half.factor} | 2 +- basis/{half-floats => math/floats/half}/summary.txt | 0 extra/gpu/render/render.factor | 2 +- extra/gpu/shaders/shaders.factor | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename basis/{half-floats => math/floats/half}/authors.txt (100%) rename basis/{half-floats/half-floats-tests.factor => math/floats/half/half-tests.factor} (93%) rename basis/{half-floats/half-floats.factor => math/floats/half/half.factor} (98%) rename basis/{half-floats => math/floats/half}/summary.txt (100%) diff --git a/basis/images/normalization/normalization.factor b/basis/images/normalization/normalization.factor index 6eaca01e15..db68e4bad6 100644 --- a/basis/images/normalization/normalization.factor +++ b/basis/images/normalization/normalization.factor @@ -2,7 +2,7 @@ ! See http://factorcode.org/license.txt for BSD license. USING: accessors alien.c-types byte-arrays combinators fry grouping images kernel locals math math.vectors -sequences specialized-arrays half-floats ; +sequences specialized-arrays math.floats.half ; FROM: alien.c-types => float ; SPECIALIZED-ARRAY: half SPECIALIZED-ARRAY: float diff --git a/basis/half-floats/authors.txt b/basis/math/floats/half/authors.txt similarity index 100% rename from basis/half-floats/authors.txt rename to basis/math/floats/half/authors.txt diff --git a/basis/half-floats/half-floats-tests.factor b/basis/math/floats/half/half-tests.factor similarity index 93% rename from basis/half-floats/half-floats-tests.factor rename to basis/math/floats/half/half-tests.factor index d6b26cb129..82db3d195b 100644 --- a/basis/half-floats/half-floats-tests.factor +++ b/basis/math/floats/half/half-tests.factor @@ -1,7 +1,7 @@ -USING: accessors alien.c-types alien.syntax half-floats kernel +USING: accessors alien.c-types alien.syntax math.floats.half kernel math tools.test specialized-arrays alien.data classes.struct ; SPECIALIZED-ARRAY: half -IN: half-floats.tests +IN: math.floats.half.tests [ HEX: 0000 ] [ 0.0 half>bits ] unit-test [ HEX: 8000 ] [ -0.0 half>bits ] unit-test diff --git a/basis/half-floats/half-floats.factor b/basis/math/floats/half/half.factor similarity index 98% rename from basis/half-floats/half-floats.factor rename to basis/math/floats/half/half.factor index 4c84bb81cc..ffa3550452 100644 --- a/basis/half-floats/half-floats.factor +++ b/basis/math/floats/half/half.factor @@ -2,7 +2,7 @@ USING: accessors alien.accessors alien.c-types alien.data alien.syntax kernel math math.order ; FROM: math => float ; -IN: half-floats +IN: math.floats.half : half>bits ( float -- bits ) float>bits diff --git a/basis/half-floats/summary.txt b/basis/math/floats/half/summary.txt similarity index 100% rename from basis/half-floats/summary.txt rename to basis/math/floats/half/summary.txt diff --git a/extra/gpu/render/render.factor b/extra/gpu/render/render.factor index 6e66832a2f..d1cb0357ed 100755 --- a/extra/gpu/render/render.factor +++ b/extra/gpu/render/render.factor @@ -4,7 +4,7 @@ assocs classes classes.mixin classes.parser classes.singleton classes.struct classes.tuple classes.tuple.private combinators combinators.tuple destructors fry generic generic.parser gpu gpu.buffers gpu.framebuffers gpu.framebuffers.private gpu.shaders gpu.shaders.private gpu.state -gpu.textures gpu.textures.private half-floats images kernel +gpu.textures gpu.textures.private math.floats.half images kernel lexer locals math math.order math.parser namespaces opengl opengl.gl parser quotations sequences slots sorting specialized-arrays strings ui.gadgets.worlds variants diff --git a/extra/gpu/shaders/shaders.factor b/extra/gpu/shaders/shaders.factor index 8a2931e431..d1c137128a 100755 --- a/extra/gpu/shaders/shaders.factor +++ b/extra/gpu/shaders/shaders.factor @@ -8,7 +8,7 @@ kernel lexer literals locals math math.parser memoize multiline namespaces opengl opengl.gl opengl.shaders parser quotations sequences specialized-arrays splitting strings tr ui.gadgets.worlds variants vectors vocabs vocabs.loader vocabs.parser words -words.constant half-floats typed ; +words.constant math.floats.half typed ; QUALIFIED-WITH: alien.c-types c SPECIALIZED-ARRAY: int SPECIALIZED-ARRAY: void*