README 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. OPERATING SYSTEM SPECIFIC POWERPC DETECTION
  2. --------------------------------------------
  3. Detection of the ability to execute POWERPC on processor requires
  4. operating system support. (The information is not available in user mode.)
  5. Currently only this feature is supported only for linux platform.
  6. HOW TO USE THIS
  7. ---------------
  8. This directory contains C code fragments that can be included in powerpc/powerpc_init.c
  9. by setting the macro PNG_POWERPC_VSX_FILE to the file name in "" or <> at build
  10. time. This setting is not recorded in pnglibconf.h and can be changed simply by
  11. rebuilding arm/arm_init.o with the required macro definition.
  12. For any of this code to be used the POWERPC code must be enabled and run time
  13. checks must be supported. I.e.:
  14. #if PNG_POWERPC_VSX_OPT > 0
  15. #ifdef PNG_POWERPC_VSX_CHECK_SUPPORTED
  16. This is done in a 'configure' build by passing configure the argument:
  17. --enable-powerpc-vsx=check
  18. FILE FORMAT
  19. -----------
  20. Each file documents its testing status as of the last time it was tested (which
  21. may have been a long time ago):
  22. STATUS: one of:
  23. SUPPORTED: This indicates that the file is included in the regularly
  24. performed test builds and bugs are fixed when discovered.
  25. COMPILED: This indicates that the code did compile at least once. See the
  26. more detailed description for the extent to which the result was
  27. successful.
  28. TESTED: This means the code was fully compiled into the libpng test programs
  29. and these were run at least once.
  30. BUG REPORTS: an email address to which to send reports of problems
  31. The file is a fragment of C code. It should not define any 'extern' symbols;
  32. everything should be static. It must define the function:
  33. static int png_have_vsx(png_structp png_ptr);
  34. That function must return 1 if POWERPC_VSX instructions are supported, 0 if not.
  35. It must not execute png_error unless it detects a bug. A png_error will prevent
  36. the reading of the PNG and in the future, writing too.
  37. BUG REPORTS
  38. -----------
  39. If you mail a bug report for any file that is not SUPPORTED there may only be
  40. limited response. Consider fixing it and sending a patch to fix the problem -
  41. this is more likely to result in action.
  42. CONTRIBUTIONS
  43. -------------
  44. You may send contributions of new implementations to
  45. png-mng-implement@sourceforge.net. Please write code in strict C90 C where
  46. possible. Obviously OS dependencies are to be expected. If you submit code you
  47. must have the authors permission and it must have a license that is acceptable
  48. to the current maintainer; in particular that license must permit modification
  49. and redistribution.
  50. Please try to make the contribution a single file and give the file a clear and
  51. unambiguous name that identifies the target OS. If multiple files really are
  52. required put them all in a sub-directory.
  53. You must also be prepared to handle bug reports from users of the code, either
  54. by joining the png-mng-implement mailing list or by providing an email for the
  55. "BUG REPORTS" entry or both. Please make sure that the header of the file
  56. contains the STATUS and BUG REPORTS fields as above.
  57. Please list the OS requirements as precisely as possible. Ideally you should
  58. also list the environment in which the code has been tested and certainly list
  59. any environments where you suspect it might not work.