*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include "common.h"
-static Int32 scaled_width(Int32 fix, int scale);
-
long fsgetn(FILE *p, size_t n)
{
long v;
return buffer;
}
-/* stolen from dvips */
-static Int32 scaled_width(Int32 fix, int scale)
-{
- Int32 al, bl;
-
- if(fix < 0)
- return -scaled_width(-fix, scale);
- if(scale < 0)
- return -scaled_width(fix, -scale);
- al = fix & 32767;
- bl = scale & 32767;
- al >>= 15;
- bl >>= 15;
-
- return (((al*bl / 32768) + fix*bl + al*scale) / 32 +
- fix * scale / 1024);
-}
-
/* buffers */
void buff_free(Buffer *buf)